Proximal Attachment
Scalenus medius is the largest and longest scalene muscle.  It arises from the transverse processes of C1 and C2 and the anterior aspect of the posterior tubercles of the transverse processes of C3 to C7.

Distal Attachment
It inserts onto the upper surface of the first rib between the tubercle and groove for the subclavian artery.